<?php

class Zend_View_Helper_Address {

    public function address(Lastfm_Location $location) {
        $address = ($location->getStreet() != "") ? $location->getStreet() . "<br/>" : "";
        $address = ($location->getPostalCode() != "") ? $address . $location->getPostalCode() . " " : $address;
        $address = ($location->getCity() != "") ? $address . $location->getCity() . " | " : $address;
        $address = ($location->getCountry() != "") ? $address . $location->getCountry() : $address;
        return $address;
    }

}

